package com.example.edums.service;

import com.example.edums.dto.LoginDTO;
import com.example.edums.dto.UserDTO;
import com.example.edums.entity.User;
import com.example.edums.util.Result;

import java.util.List;

public interface UserService {
    Result<UserDTO> login(LoginDTO loginDTO);
    Result<List<User>> getAllUsers();
    Result<User> addUser(User user);
    Result<User> updateUser(Long id, User user);
    Result<Void> deleteUser(Long id);
}